/**
 * 2015-12-18
 * Teacher.java
 * author:sherlochao
 */
package com.sherlochao.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author yinchao
 *
 */
@Entity
@Table(name = "teacher")
public class Teacher {
	
	@Id
	@Column(name = "id", nullable = false, length = 12)
	private String teacherId;
	
	@Column(name = "teacher_name", nullable = false, length = 32)
	private String teacherName;
	
	@Column(name = "teacher_birthdate", length = 32)
	private String teacherBirthdate;

	
	
	public Teacher() {
		super();
	}

	public Teacher(String teacherId, String teacherName) {
		super();
		this.teacherId = teacherId;
		this.teacherName = teacherName;
	}

	public Teacher(String teacherId, String teacherName, String teacherBirthdate) {
		super();
		this.teacherId = teacherId;
		this.teacherName = teacherName;
		this.teacherBirthdate = teacherBirthdate;
	}

	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	public String getTeacherName() {
		return teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public String getTeacherBirthdate() {
		return teacherBirthdate;
	}

	public void setTeacherBirthdate(String teacherBirthdate) {
		this.teacherBirthdate = teacherBirthdate;
	}

	@Override
	public String toString() {
		return "Teacher [teacherId=" + teacherId + ", teacherName="
				+ teacherName + ", teacherBirthdate=" + teacherBirthdate + "]";
	} 
	
	

}
